package com.eat.fish_service.entity.Dao;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author LWB
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="鱼缸对象", description="")
public class Aquarium implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "鱼缸id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "鱼的数量")
    private Integer fishNum;

    @ApiModelProperty(value = "逻辑删除  1：已删除， 0：未删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "表示为鱼缸负责人，值为某个管理员用户的id，用户鱼缸出现问题可以找这个负责人")
    private String charge;

    @ApiModelProperty(value = "鱼缸鱼的最大容量，默认为6，可修改")
    private Integer maxNum;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private Date gmtModified;


}
